home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / smailsrc.zip / SMAIL.ZIP / MAKEFILE < prev    next >
Text File  |  1990-04-04  |  3KB  |  129 lines

  1. # Makefile for smail (not a installation makefile)
  2. #
  3. # @(#)Makefile  2.5 (smail-PC) 9/15/87
  4. #
  5. # Although some UNIXisms have been left in this makefile, it is predominately
  6. # intended for MS-DOS sites using Turbo C.  This file and the accompanying
  7. # linker response file tlink.rsp probably require many modifications before
  8. # they will work with a different compiler.  (Did I hear someone say "MS-C"?)
  9. # Sorry about that.  ;-)
  10. #
  11.  
  12. #
  13. # System V Release 2.0 sites can use -lmalloc for a faster malloc
  14. #
  15. # LIBS   =       -lmalloc
  16. #
  17. # all: smail svbinmail lcasep pathproc mkfnames nptx
  18. #
  19.  
  20. #
  21. # MS-DOS sites need to use a password library, such as spwd.lib
  22. #
  23. LIBS    =       ..\passwd\spwd.lib
  24.  
  25. #
  26. # Turbo C Flags: Small memory model, Optimize, Debugging
  27. #
  28. CFLAGS  =       -ms -O
  29.  
  30. OBJECTS =       main.obj map.obj resolve.obj misc.obj alias.obj pw.obj\
  31.         headers.obj getpath.obj str.obj getopt.obj deliver.obj\
  32.         msdos.obj popen.obj config.obj
  33.  
  34. .c.obj:
  35.         tcc $(CFLAGS) -c $*.c
  36.  
  37. #
  38. #   Generalized make targets
  39. #
  40. all:            smail.exe rmail.exe lmail.exe uux.exe lcasep.exe\
  41.         uuxdummy.exe nptx.exe
  42.  
  43. install:        all
  44.         @echo read doc/Install
  45.  
  46. clean:
  47.         -rm /f *.obj *.map
  48.  
  49. clobber:    clean
  50.         -rm /f smail.exe rmail.exe lmail.exe uux.exe lcasep.exe\
  51.             nptx.exe uuxdummy.exe
  52.  
  53. #
  54. #   Executable targets
  55. #
  56. smail.exe:      $(OBJECTS)
  57.         tlink @tlink.rsp
  58.  
  59. rmail.exe:      smail.exe
  60.         @copy smail.exe rmail.exe
  61.  
  62. lmail.exe:      lmail.obj config.obj
  63.         tcc -elmail $(CFLAGS) lmail.obj config.obj $(LIBS)
  64.  
  65. uux.exe:        uux.obj config.obj
  66.         tcc -euux $(CFLAGS) uux.obj config.obj $(LIBS)
  67.  
  68. uuxdummy.exe:   uuxdummy.obj
  69.         tcc -euuxdummy $(CFLAGS) uuxdummy.obj $(LIBS)
  70.  
  71. lcasep.exe:     lcasep.obj getopt.obj
  72.         tcc -elcasep $(CFLAGS) lcasep.obj getopt.obj $(LIBS)
  73.  
  74. nptx.exe:       nptx.obj pw.obj str.obj getopt.obj
  75.         tcc -enptx $(CFLAGS) nptx.obj pw.obj str.obj getopt.obj $(LIBS)
  76.  
  77. #
  78. #   Intermediate (.OBJ) targets
  79. #
  80. alias.obj:      alias.c defs.h
  81.  
  82. config.obj:     config.c config.h
  83.  
  84. deliver.obj:    deliver.c defs.h
  85.  
  86. getopt.obj:     getopt.c defs.h
  87.  
  88. getpath.obj:    getpath.c defs.h
  89.  
  90. headers.obj:    headers.c defs.h
  91.  
  92. lcasep.obj:     lcasep.c
  93.  
  94. lmail.obj:      lmail.c config.h
  95.  
  96. main.obj:       main.c defs.h
  97.  
  98. map.obj:        map.c defs.h
  99.  
  100. misc.obj:       misc.c defs.h
  101.  
  102. msdos.obj:      msdos.c defs.h config.h
  103.  
  104. nptx.obj:       nptx.c
  105.  
  106. popen.obj:      popen.c
  107.  
  108. pw.obj:         pw.c defs.h
  109.  
  110. resolve.obj:    resolve.c defs.h
  111.  
  112. str.obj:        str.c defs.h
  113.  
  114. uux.obj:        uux.c config.h
  115.  
  116. uuxdummy.obj:   uuxdummy.c config.h
  117.  
  118. # The following shell scripts are meaningless under MS-DOS
  119. #
  120. # pathproc:       pathproc.sh
  121. #                 cp pathproc.sh pathproc
  122. #                 chmod 755 pathproc
  123. #
  124. # mkfnames:       mkfnames.sh
  125. #                 cp mkfnames.sh mkfnames
  126. #                 chmod 755 mkfnames
  127.  
  128.  
  129.